package city.spring.domain.entity.mealService;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * week_meal 单位套餐的实体
 *
 * @author yzh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("week_meal")
public class WeekMealEntity implements Serializable {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 所属餐次
     */
    private Integer mealTime;

    /**
     * 所属日期
     */
    private Integer mealDay;

    /**
     * 周次id
     */
    private String weekId;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 更新时间
     */
    private Date gmtModified;

    @TableField(exist = false)
    private List<FoodInfoEntity> foodInfoEntities;

    @TableField(exist = false)
    private List<String> mealTurn;

    @TableField(exist = false)
    private Map<String, List<FoodInfoEntity>> mealTurnFood;

//    @TableField(exist = false)
//    private List<RecipesVotesEntity> recipesVotesEntities;

    @TableField(exist = false)
    private String mealTimeString;

    @TableField(exist = false)
    private String mealDayString;

    @TableField(exist = false)
    private String weekIdString;

    @TableField(exist = false)
    private List<Integer> votes;

    @TableField(exist = false)
    private Map<String, Map<Integer, List<FoodInfoEntity>>> votesMealTurnFood;

}
